package com.ios.common.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * IosBizSubject entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "ios_biz_subject", catalog = "ios")
public class IosBizSubject implements java.io.Serializable {

	// Fields

	private Long subjectId;
	private Long parentSubjectId;
	private Long childSubjectId;
	private String subjectName;
	private String spell;
	private Integer isSysSubject;
	private Float firstBorrowerMoney;
	private Float firstLenderMoney;
	private Float firstMoney;
	private Float borrowerMoney;
	private Float lenderMoney;
	private Float money;
	private String createTime;
	private String remark;
	private String version;

	// Constructors

	/** default constructor */
	public IosBizSubject() {
	}

	/** minimal constructor */
	public IosBizSubject(String subjectName) {
		this.subjectName = subjectName;
	}

	/** full constructor */
	public IosBizSubject(Long parentSubjectId, Long childSubjectId,
			String subjectName, String spell, Integer isSysSubject,
			Float firstBorrowerMoney, Float firstLenderMoney, Float firstMoney,
			Float borrowerMoney, Float lenderMoney, Float money,
			String createTime, String remark, String version) {
		this.parentSubjectId = parentSubjectId;
		this.childSubjectId = childSubjectId;
		this.subjectName = subjectName;
		this.spell = spell;
		this.isSysSubject = isSysSubject;
		this.firstBorrowerMoney = firstBorrowerMoney;
		this.firstLenderMoney = firstLenderMoney;
		this.firstMoney = firstMoney;
		this.borrowerMoney = borrowerMoney;
		this.lenderMoney = lenderMoney;
		this.money = money;
		this.createTime = createTime;
		this.remark = remark;
		this.version = version;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "native")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "subject_id", unique = true, nullable = false)
	public Long getSubjectId() {
		return this.subjectId;
	}

	public void setSubjectId(Long subjectId) {
		this.subjectId = subjectId;
	}

	@Column(name = "parent_subject_id")
	public Long getParentSubjectId() {
		return this.parentSubjectId;
	}

	public void setParentSubjectId(Long parentSubjectId) {
		this.parentSubjectId = parentSubjectId;
	}

	@Column(name = "child_subject_id")
	public Long getChildSubjectId() {
		return this.childSubjectId;
	}

	public void setChildSubjectId(Long childSubjectId) {
		this.childSubjectId = childSubjectId;
	}

	@Column(name = "subject_name", nullable = false, length = 50)
	public String getSubjectName() {
		return this.subjectName;
	}

	public void setSubjectName(String subjectName) {
		this.subjectName = subjectName;
	}

	@Column(name = "spell", length = 50)
	public String getSpell() {
		return this.spell;
	}

	public void setSpell(String spell) {
		this.spell = spell;
	}

	@Column(name = "is_sys_subject")
	public Integer getIsSysSubject() {
		return this.isSysSubject;
	}

	public void setIsSysSubject(Integer isSysSubject) {
		this.isSysSubject = isSysSubject;
	}

	@Column(name = "first_borrower_money", precision = 12, scale = 0)
	public Float getFirstBorrowerMoney() {
		return this.firstBorrowerMoney;
	}

	public void setFirstBorrowerMoney(Float firstBorrowerMoney) {
		this.firstBorrowerMoney = firstBorrowerMoney;
	}

	@Column(name = "first_lender_money", precision = 12, scale = 0)
	public Float getFirstLenderMoney() {
		return this.firstLenderMoney;
	}

	public void setFirstLenderMoney(Float firstLenderMoney) {
		this.firstLenderMoney = firstLenderMoney;
	}

	@Column(name = "first_money", precision = 12, scale = 0)
	public Float getFirstMoney() {
		return this.firstMoney;
	}

	public void setFirstMoney(Float firstMoney) {
		this.firstMoney = firstMoney;
	}

	@Column(name = "borrower_money", precision = 12, scale = 0)
	public Float getBorrowerMoney() {
		return this.borrowerMoney;
	}

	public void setBorrowerMoney(Float borrowerMoney) {
		this.borrowerMoney = borrowerMoney;
	}

	@Column(name = "lender_money", precision = 12, scale = 0)
	public Float getLenderMoney() {
		return this.lenderMoney;
	}

	public void setLenderMoney(Float lenderMoney) {
		this.lenderMoney = lenderMoney;
	}

	@Column(name = "money", precision = 12, scale = 0)
	public Float getMoney() {
		return this.money;
	}

	public void setMoney(Float money) {
		this.money = money;
	}

	@Column(name = "create_time", length = 14)
	public String getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	@Column(name = "remark", length = 300)
	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name = "version", length = 10)
	public String getVersion() {
		return this.version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

}